#pragma once
//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#include <VxUtilLib/VxDefs.h>
#include <VxUtilLib/VxInetAddress.h>
#include <string>

bool VxResolveHostToIp(	const char * pUrl,			// web name to resolve
						std::string & strRetIp,		// return dotted string 
						U16& u16RetPort );			// return port

bool VxResolveHostToIp(	const char * pHostOnly,			//web host name to resolve
					    U16 u16Port,
						VxInetAddress& oRetIp );

bool VxResolveHostToIps(	const char * pHostOnly,			//web host name to resolve
							U16 u16Port,
							std::vector<VxInetAddress>& aoRetIps );


